﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BT_DoHoa_Nhom13.ShapeLib.DFDShapes
{
    public class DFDProcessShape: MyDiagramShape
    {

        public DFDProcessShape()
        {
            // TODO: Complete member initialization
            lstShapes = new List<MyShape>();
        }

        public override MyShape Clone()
        {
            return  new DFDProcessShape();
        }

        public override MyShape CloneByDiagramFactory(DiagramFactorys.MyDiagramFactory factory)
        {
            MyShape newShape = factory.GetProcessShape();
            newShape.Copy(this);
            return newShape;
        }

        public override void ResetChildPoint()
        {
            foreach(MyShape shape in lstShapes)
            {
                shape.SetStartPoint(startX,startY);
                shape.SetEndPoint(endX,endY);
            }
        }
    }
}
